package com.njtoyo.taxi.admin.mapper.master.mapper;

import cn.hutool.core.lang.Dict;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.Taxi;
import com.njtoyo.taxi.admin.rest.presenter.data.data_analysis.OrderChartPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.simple_call.SimpleCallDiagramQueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
@DS(Const.PRIMARY_DS)
public interface SimpleCallDiagramMapper {


    List<OrderChartPresenter> getChartData(@Param("weekAgo") Date weekAgo, @Param("nowDate") Date nowDate,@Param("cans") List<Long> cans,
                                           @Param("coms") List<Long> coms);

    IPage<Dict> getAdminCallPage(Page<Object> page, @Param("wrapper") SimpleCallDiagramQueryWrapper wrapper);

    List<Taxi> getAppointmentTaxi();
}
